<?php
/**
 * Admin Not_Found
 * @filesource
 */
/**
 * Namespace
 */
namespace plurious\apps\admin\controller\error;
/**
 * Dependencies
 */
use framework\engine\Controller;
/**
 * Page Not Found Page Controller for the Admin Context
 * 
 * Extends Controller.
 * 
 * @author Randy Casburn <randy@plurious.com>
 * @copyright Copyright Plurious Software, all rights reserved
 * @license MIT
 * @license http://www.opensource.org/licenses/mit-license.html
 * @link http://plurious.com/framework/documentation/classes/Front.html
 * @version 2.1
 * 
 * @uses framework\engine\Controller (extends - therefore required)
 */
class Not_found extends Controller {
    /**
     * Allows caching of the page
     * 
     * Do not cache dynamic content.
     * @var bool $isCachable
     */
    protected $isCachable = true;
    /**
     * Sets up the 404 error page
     */
    public function index() {
        $this->isCachable = false;
        $this->getLanguage('error/not_found');
        $this->document->setTitle($this->getText('heading_title'));
        $this->data['heading_title'] = $this->getText('heading_title');
        $this->data['text_error'] = $this->getText('text_error');
        $this->data['button_continue'] = $this->getText('button_continue');
        $this->document->addHeader(PROTOCOL . '/1.1 404 Not Found');
        $this->data['continue'] = $this->url->link('home');
        $this->children = array ( 'common/header', 'common/footer');

       $this->render();
    }

}

?>